import java.util.*;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 张杰
 * Date: 2022-08-13
 * Time: 16:52
 */
public class Main1 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        ArrayList<Integer> arrayList = new ArrayList<>();
        for (int i = 0; i < n; i++) {
            arrayList.add(sc.nextInt());
        }
        LinkedList<Integer> res = new LinkedList<>();
        int index = 0;
        Collections.reverse(arrayList);
        for (Integer now:arrayList) {
            if(res.size() == 0) {
                res.add(now);
            }else {
                res.add(index,now);
            }
            for (int i = 0; i < 2; i++) {
                if(index == 0) {
                    index = res.size()-1;
                }else {
                    index--;
                }
            }
        }
        int first = res.get(res.size()-1);
        res.remove(res.size()-1);
        res.add(0,first);
        for (int now:res) {
            System.out.println(now);
        }
    }
}
